//
//  BaseTableViewController.h
//  TheRicher
//
//  Created by 李晓东 on 2018/1/16.
//  Copyright © 2018年 PeanutXu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ShuangSeQiu.h"
#import "NetService.h"
#import "DatabaseService.h"
#import "BaseTableViewCell.h"
#import "KillNumberTools.h"

#import "UIScrollView+XDScrollView.h"
#import "XDRefreshingView.h"
#import "DatabaseResultDelegate.h"

static NSInteger const RowCount = 20;

@interface BaseTableViewController : UITableViewController <NetResultDelegate, InsertKillingTableDelegate>

@property (nonatomic, strong) UIActivityIndicatorView *activityIndicatorView;

@property (nonatomic, strong) NSMutableArray *dataArray;
@property (nonatomic, strong) NSString *tableName;
@property (nonatomic, strong) DatabaseService *databaseService;
@property (nonatomic, strong) NetService *netService;
@property (nonatomic, strong) NetQueryResult netQueryResultBlock;
@property (nonatomic, strong) KillNumberTools *killingNumberTools;

// 下拉刷新了多少条数据
@property (nonatomic, assign) NSInteger needToRefreshCount;
- (void)addBeObserver:(NSObject *)beObserver andObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath;

//- (void)resultInNet:(id)result;
- (void)typeMethodInKillNumberTools:(NSArray *)resultArray;

- (void)refreshChildControllerView:(NSInteger)refreshCount;
@end
